home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / DefineButton2_210 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2007-09-27  |  2.1 KB  |  73 lines

  1. on(release){
  2.    f = 0;
  3.    while(f < 100)
  4.    {
  5.       _root.ground._x = 650;
  6.       _root.ceiling._x = 650;
  7.       _root.stars._x = -669;
  8.       _root.stars2._x = -669;
  9.       _root["spike" + f].removeMovieClip(this);
  10.       _root["ground" + f].removeMovieClip(this);
  11.       _root["ceiling" + f].removeMovieClip(this);
  12.       _root["stars" + f].removeMovieClip(this);
  13.       _root["stars2" + f].removeMovieClip(this);
  14.       _root["block" + f].removeMovieClip(this);
  15.       f++;
  16.    }
  17.    _root.score = 0;
  18.    _root.playerBody1._alpha = 100;
  19.    _root.playerBody2._alpha = 100;
  20.    _root.playerBody3._alpha = 100;
  21.    _root.player.deathCount = 0;
  22.    _root.player._x = 96;
  23.    _root.player._y = 209;
  24.    _root.playerBody1.deathCount = 0;
  25.    _root.playerBody2.deathCount = 0;
  26.    _root.playerBody3.deathCount = 0;
  27.    _root.playerBody1._width = 20;
  28.    _root.playerBody2._width = 16;
  29.    _root.playerBody3._width = 12;
  30.    _root.playerBody1._height = 20;
  31.    _root.playerBody2._height = 16;
  32.    _root.playerBody3._height = 12;
  33.    _root.invincibility = 0;
  34.    _root.gameoverscreen._visible = false;
  35.    _root.invincTimer = 0;
  36.    _root.speed = 0;
  37.    _root.speedMax = 6;
  38.    _root.gameOver = 0;
  39.    _root.lives = 4;
  40.    _root.startText = "";
  41.    _root.phase = 1;
  42.    _root.gameReallyOver = 0;
  43.    _root.bossFight = 0;
  44.    _root.gameOn = 1;
  45.    _root.dir = 1;
  46.    _root.i = 100;
  47.    _root.groundCount = 0;
  48.    _root.littlestarCount = 0;
  49.    _root.spikeCount = 1;
  50.    _root.ceilingCount = 0;
  51.    _root.stars2Count = 0;
  52.    _root.cometCount = 0;
  53.    _root.groundSpeed = 6;
  54.    _root.blockCount = 0;
  55.    _root.starsCount = 0;
  56.    _root.spikeHeightAdd = 20;
  57.    _root.score = 0;
  58.    _root.spikeHeightMin = 90;
  59.    _root.spikeChances = 4;
  60.    _root.blockMax = 30;
  61.    _root.groundHeightMin = 42;
  62.    _root.invincTimer = 0;
  63.    _root.invincMiniTimer = 0;
  64.    _root.invincibility = 0;
  65.    _root.groundHeightAdd = 30;
  66.    _root.player.unloadClip();
  67.    _root.playerBody1.unloadClip();
  68.    _root.playerBody2.unloadClip();
  69.    _root.playerBody3.unloadClip();
  70.    refreshMovie();
  71.    _root.gotoAndPlay(4);
  72. }
  73.